<?php 
/**
 * 默认参数
 */
/**
 * [demo]
 * @param  [type] $name  [姓名]
 * @param  [type] $age   [年龄]
 * @param  [type] $sex   [性别]
 * @param  [type] $email [邮箱]
 * @param  [type] $phone [电话]
 * @return [type]        [description]
 */
function demo($name, $age, $sex, $email, $phone){
	echo $name.'---'.$age.'---'.$sex.'---'.$email.'---'.$phone;
}
demo("Tom", 19, "男", "aa@bb.com", "12345678901");
echo "<hr>";
/**
 * [demo1 description]
 * demo1($name, $age, $sex[, $email, $phone]);
 * @param  [type] $name  [description]
 * @param  [type] $age   [description]
 * @param  [type] $sex   [description]
 * @param  string $email [可选]
 * @param  string $phone [可选]
 * @return [type]        [description]
 */

function demo1($name, $age, $sex, $email = 'aa@bb.com', $phone = '1234578901'){
	echo $name.'---'.$age.'---'.$sex.'---'.$email.'---'.$phone;
}
demo1("Tom", 19, "男");



 ?>